package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the returnmoney database table.
 * 
 */
@Entity
@Table(name="returnmoney")
@NamedQuery(name="Returnmoney.findAll", query="SELECT r FROM Returnmoney r")
public class Returnmoney implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String returnmoneyid;

	private String orderid;

	private BigDecimal returnmoney;

	private String returnmoneyremarks;

	@Temporal(TemporalType.DATE)
	private Date returnmoneytime;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cid")
	private Customer customer;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staffid")
	private Staff staff;

	public Returnmoney() {
	}

	public String getReturnmoneyid() {
		return this.returnmoneyid;
	}

	public void setReturnmoneyid(String returnmoneyid) {
		this.returnmoneyid = returnmoneyid;
	}

	public String getOrderid() {
		return this.orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public BigDecimal getReturnmoney() {
		return this.returnmoney;
	}

	public void setReturnmoney(BigDecimal returnmoney) {
		this.returnmoney = returnmoney;
	}

	public String getReturnmoneyremarks() {
		return this.returnmoneyremarks;
	}

	public void setReturnmoneyremarks(String returnmoneyremarks) {
		this.returnmoneyremarks = returnmoneyremarks;
	}

	public Date getReturnmoneytime() {
		return this.returnmoneytime;
	}

	public void setReturnmoneytime(Date returnmoneytime) {
		this.returnmoneytime = returnmoneytime;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}